package com.ayf.payment.game.api.service;


import com.ayf.payment.game.api.dto.Token;

/**
 * @Author: zh-liang
 * @Date : 2020-1-7 15:26
 */
public interface TokenService {

    /**
     * game创建TOKEN
     *
     * @param merchantId
     * @param loginId
     * @param loginType
     * @return
     */
    Token createToken(Integer merchantId, Integer loginId, String loginType);

    /**
     * 删除TOKEN
     */
    void deleteToken(Integer merchantId);

    /**
     * 删除TOKEN
     */
    void deleteTokenByToken(String token);

    /**
     * 删除TOKEN
     */
    void deleteTokenByLoginId(Integer merchantId, Integer loginId);

    void deleteClientToken(Integer merchantId,String clientType);

    Token createToken(Integer merchantId, Integer loginId, String loginType,String reqIp);

}
